home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / programming / jpegv6 / jpeg-6 / makefile.wat < prev    next >
Encoding:
Makefile  |  1995-07-25  |  11.6 KB  |  228 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is suitable for Watcom C/C++ 10.0 on MS-DOS (using
  4. # dos4g extender), OS/2, and Windows NT console mode.
  5. # Thanks to Janos Haide, jhaide@btrvtech.com.
  6.  
  7. # Read installation instructions before saying "wmake" !!
  8.  
  9. # Uncomment line for desired system
  10. SYSTEM=DOS
  11. #SYSTEM=OS2
  12. #SYSTEM=NT
  13.  
  14. # The name of your C compiler:
  15. CC= wcl386
  16.  
  17. # You may need to adjust these cc options:
  18. CFLAGS= -4r -ort -wx -zq -bt=$(SYSTEM)
  19. # Caution: avoid -ol or -ox; these generate bad code with 10.0 or 10.0a.
  20. # Generally, we recommend defining any configuration symbols in jconfig.h,
  21. # NOT via -D switches here.
  22.  
  23. # Link-time cc options:
  24. !ifeq SYSTEM DOS
  25. LDFLAGS= -zq -l=dos4g
  26. !else ifeq SYSTEM OS2
  27. LDFLAGS= -zq -l=os2v2
  28. !else ifeq SYSTEM NT
  29. LDFLAGS= -zq -l=nt
  30. !endif
  31.  
  32. # Put here the object file name for the correct system-dependent memory
  33. # manager file.  jmemnobs should work fine for dos4g or OS/2 environment.
  34. SYSDEPMEM= jmemnobs.obj
  35.  
  36. # End of configurable options.
  37.  
  38.  
  39. # source files: JPEG library proper
  40. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c &
  41.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c &
  42.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c &
  43.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c &
  44.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c &
  45.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c &
  46.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c &
  47.         jquant2.c jutils.c jmemmgr.c jmemansi.c jmemname.c jmemnobs.c &
  48.         jmemdos.c
  49. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  50. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c &
  51.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c &
  52.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  53. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  54. # files included by source files
  55. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h &
  56.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  57. # documentation, test, and support files
  58. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 &
  59.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc &
  60.         coderules.doc filelist.doc change.log
  61. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc &
  62.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st &
  63.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms &
  64.         makefile.vms makvms.opt
  65. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc &
  66.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  67. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  68. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg &
  69.         testimgp.jpg
  70. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) &
  71.         $(OTHERFILES) $(TESTFILES)
  72. # library object files common to compression and decompression
  73. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  74. # compression library object files
  75. CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj &
  76.         jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj &
  77.         jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj &
  78.         jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  79. # decompression library object files
  80. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj &
  81.         jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj &
  82.         jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj &
  83.         jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj &
  84.         jquant1.obj jquant2.obj jdmerge.obj
  85. # These objectfiles are included in libjpeg.lib
  86. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  87. # object files for sample applications (excluding library files)
  88. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj &
  89.         rdswitch.obj cdjpeg.obj
  90. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj &
  91.         rdcolmap.obj cdjpeg.obj
  92. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj
  93.  
  94.  
  95. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  96.  
  97. libjpeg.lib: $(LIBOBJECTS)
  98.     - del libjpeg.lib
  99.     * wlib -n libjpeg.lib $(LIBOBJECTS)
  100.  
  101. cjpeg.exe: $(COBJECTS) libjpeg.lib
  102.     $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib
  103.  
  104. djpeg.exe: $(DOBJECTS) libjpeg.lib
  105.     $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib
  106.  
  107. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  108.     $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib
  109.  
  110. rdjpgcom.exe: rdjpgcom.c
  111.     $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c
  112.  
  113. wrjpgcom.exe: wrjpgcom.c
  114.     $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c
  115.  
  116. .c.obj:
  117.     $(CC) $(CFLAGS) -c $<
  118.  
  119. jconfig.h: jconfig.doc
  120.     echo You must prepare a system-dependent jconfig.h file.
  121.     echo Please read the installation directions in install.doc.
  122.     exit 1
  123.  
  124. clean: .SYMBOLIC
  125.     - del *.obj
  126.     - del libjpeg.lib
  127.     - del cjpeg.exe
  128.     - del djpeg.exe
  129.     - del jpegtran.exe
  130.     - del rdjpgcom.exe
  131.     - del wrjpgcom.exe
  132.     - del testout*.*
  133.  
  134. test: cjpeg.exe djpeg.exe jpegtran.exe  .SYMBOLIC
  135.     - del testout*.*
  136.     djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  137.     djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  138.     cjpeg -dct int -outfile testout.jpg  testimg.ppm
  139.     djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  140.     cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  141.     jpegtran -outfile testoutt.jpg testprog.jpg
  142. !ifeq SYSTEM DOS
  143.     fc /b testimg.ppm testout.ppm
  144.     fc /b testimg.gif testout.gif
  145.     fc /b testimg.jpg testout.jpg
  146.     fc /b testimg.ppm testoutp.ppm
  147.     fc /b testimgp.jpg testoutp.jpg
  148.     fc /b testorig.jpg testoutt.jpg
  149. !else
  150.     echo n > n.tmp
  151.     comp testimg.ppm testout.ppm < n.tmp
  152.     comp testimg.gif testout.gif < n.tmp
  153.     comp testimg.jpg testout.jpg < n.tmp
  154.     comp testimg.ppm testoutp.ppm < n.tmp
  155.     comp testimgp.jpg testoutp.jpg < n.tmp
  156.     comp testorig.jpg testoutt.jpg < n.tmp
  157.     del n.tmp
  158. !endif
  159.  
  160.  
  161. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  166. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  167. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  174. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  180. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  181. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  184. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  185. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  191. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  195. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  196. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  197. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  198. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  199. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  200. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  201. jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  202. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  206. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  207. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  208. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  209. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  210. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  211. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  212. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  213. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  214. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  215. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  216. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  217. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  218. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  219. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  220. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  221. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  222. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  223. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  224. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  225. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  226. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  227. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  228.